package com.bill99.rpc.cluster;

import com.bill99.rpc.registry.url.ServiceUrl;

/**
 * 服务节点
 * @author sheng.zhang
 */
public class ServiceNode {

	// 服务URL
	private ServiceUrl serviceUrl;

	// 可用性
	private boolean available = true;

	public ServiceNode(ServiceUrl serviceUrl) {
		this.serviceUrl = serviceUrl;
	}

	public ServiceUrl getServiceUrl() {
		return serviceUrl;
	}

	public boolean isAvailable() {
		return available;
	}

	public void setServiceUrl(ServiceUrl serviceUrl) {
		this.serviceUrl = serviceUrl;
	}

	public void setAvailable(boolean available) {
		this.available = available;
	}

}
